﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PrivyInfonew.ascx.cs"
    Inherits="Control_PrivyInfonew" %>
<infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
    datamember="EmployeesSelf" cachedataset="True" onupdating="Master_Updating">
</infolight:webdatasource>
<fieldset title="个人信息" style="overflow: hidden">
    <legend style="font-size: large; font-weight: bold">个人信息</legend>
    <table style="width: 100%">
        <tr>
            <td>
                <infolight:webnavigator id="wnSelf" runat="server" bindingobject="FVSelf" oncommand="wnSelf_Command"
                    showdatastyle="FormViewStyle" width="100%" statusstrip="WebStatusStrip1" ctlheight="25"
                    cssclass="NavigatorBar">
                    <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first.gif" MouseOverImageUrl="../image/uipics/first2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/first3.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/previous.gif" MouseOverImageUrl="../image/uipics/previous2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/previous3.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next.gif" MouseOverImageUrl="../image/uipics/next2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last.gif" MouseOverImageUrl="../image/uipics/last2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                    
                    
 
                 <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                
        
                    
                    
               
    <InfoLight:ControlItem ControlName="Cancel" ControlType="Image" ControlVisible="True"
                        DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                        MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                    </InfoLight:ControlItem>
    <InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                        DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                        MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                    </InfoLight:ControlItem>
                    
                    
                    
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort.gif" MouseOverImageUrl="../image/uipics/abort2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/abort3.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/query3.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/print3.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3.gif" ImageUrl="../Image/UIPics/Export.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2.gif" Size="25" />
            </navcontrols>
                    <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
                </infolight:webnavigator>
            </td>
        </tr>
    </table>
    <infolight:webformview id="FVSelf" runat="server" datasourceid="Master" width="100%"
        cellpadding="4">
        <edititemtemplate>
 <table class="tbE" cellpadding="5">
     <tr>
         <td class="label1" style="display:none">
            登陆名：
         </td>
         <td class="textbox"  style="display:none">
             <asp:TextBox ID="UsaName" runat="server" Text='<%# Bind("UsaName") %>'></asp:TextBox>
         </td>
          <td class="label2">
            密码重置：
         </td>
         <td style="background-color:Silver">
             <asp:Button ID="repwd" runat="server" Text="点击此处 重置密码" 
                 onclientclick="return confirm('确认重置密码？')" BackColor="Silver" 
                 onclick="repwd_Click" 
                  Width="100%" Height="100%"></asp:Button>
                 
                <asp:TextBox ID="txtpwd" runat="server" Text='<%# Bind("Password") %>' Visible="false"></asp:TextBox>
              
         </td>
     </tr>
     <tr style="display:none">
         <td class="label1" style="width:200px">
            新密码<font style="color:Red">［</font>字母开头，5-16位<font style="color:Red">］</font>：
         </td>
         <td class="textbox">
             <asp:TextBox ID="Password" runat="server" Text='<%# Bind("Password") %>' TextMode="Password"></asp:TextBox>
         </td>
          <td class="label2">
            重复密码：
         </td>
         <td class="textbox">
             <asp:TextBox ID="RePassword" runat="server" TextMode="Password"></asp:TextBox>
         </td>
     </tr>
    
     <tr>
         <td class="label1">
             手机号：
         </td>
         <td class="textbox">
             <asp:TextBox ID="Mobile" runat="server" Text='<%# Bind("Mobile") %>'></asp:TextBox>
         </td>
         <td class="label2">
            EMail：
         </td>
         <td class="textbox">
             <asp:TextBox ID="Email" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
         </td>
     </tr>
     
      <tr>
         <td class="label1">
             紧急联系人：
         </td>
         <td class="textbox">
             <asp:TextBox ID="ContactPeople" runat="server" Text='<%# Bind("ContactPeople") %>' MaxLength="5"></asp:TextBox>
         </td>
         <td class="label2">
            联系人电话：
         </td>
         <td class="textbox">
             <asp:TextBox ID="ContactPhone" runat="server" Text='<%# Bind("ContactPhone") %>' MaxLength="20"></asp:TextBox>
         </td>
     </tr>
     
     <tr>
         <td class="label1">
             分机号：
         </td>
         <td class="textbox">
             <asp:TextBox ID="Extension" runat="server" Text='<%# Bind("Extension") %>' MaxLength="2"></asp:TextBox>
         </td>
         <td  style="display:none">
              <asp:Label ID="EmployeeID" runat="server" Text='<%# Bind("EmployeeID") %>'></asp:Label>
         </td>
     </tr>
     
      <tr>
         
         
         <td class="label1">
            家庭住址：
         </td>
         <td class="textbox" colspan="3">
             <asp:TextBox ID="Address" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
         </td>
     </tr>
 </table>
 </edititemtemplate>
        <itemtemplate>
 <table class="tbR"  cellpadding="5">
     <tr>
         <td class="label1" style="display:none">
            登陆名：
         </td>
         <td class="textbox" style="display:none">
             <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("UsaName") %>' 
                 ReadOnly="True"></asp:TextBox>
         </td>
         
     </tr>
     <tr>
         <td class="label1">
             手机号：
         </td>
         <td class="textbox">
             <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Mobile") %>' 
                 ReadOnly="True"></asp:TextBox>
         </td>
         <td class="label2">
            EMail：
         </td>
         <td class="textbox">
             <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
         </td>
     </tr>
     
      <tr>
         <td class="label1">
             紧急联系人：
         </td>
         <td class="textbox">
             <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ContactPeople") %>' 
                 ReadOnly="True"></asp:TextBox>
         </td>
         <td class="label2">
            联系人电话：
         </td>
         <td class="textbox">
             <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("ContactPhone") %>'></asp:TextBox>
         </td>
     </tr>
     
     <tr>
         <td class="label1">
             分机号：
         </td>
         <td class="textbox">
             <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Extension") %>' 
                 ReadOnly="True"></asp:TextBox>
         </td>
         <td  style="display:none">
              <asp:Label ID="Label1" runat="server" Text='<%# Bind("EmployeeID") %>'></asp:Label>
         </td>
     </tr>
     
      <tr>
         
         
         <td class="label1">
            家庭住址：
         </td>
         <td class="textbox" colspan="3">
             <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
         </td>
     </tr>
 </table>
 </itemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="EmployeeID" FieldName="EmployeeID" />
                <InfoLight:FormViewField ControlID="ContactPeople" FieldName="ContactPeople" />
                <InfoLight:FormViewField ControlID="ContactPeople" FieldName="ContactPeople" />
                  <InfoLight:FormViewField ControlID="Address" FieldName="Address" />
                <InfoLight:FormViewField ControlID="Email" FieldName="Email" />
                <InfoLight:FormViewField ControlID="Mobile" FieldName="Mobile" />
                  <InfoLight:FormViewField ControlID="Password" FieldName="Password" />
                <InfoLight:FormViewField ControlID="UsaName" FieldName="UsaName" />
            </fields>
    </infolight:webformview>
</fieldset>
<infolight:webvalidate id="wvEmployeesSelf" runat="server" datasourceid="Master"
    datamember="EmployeesSelf" rowcss="" altrowcss="" forecolor="Red">
    <fields>
        <InfoLight:ValidateFieldItem FieldName="Password" Validate="MyCheck()"></InfoLight:ValidateFieldItem>
    </fields>
</infolight:webvalidate>
